package com.rritw.webtools.common;

import org.apache.commons.httpclient.Header;

/**
 * Http请求的结果
 * 
 * @author ddp1j32
 * @date 2015-2-5
 */
public class HttpResult {

    /**
     * Http请求响应码，如200,400等
     */
    private int      code;
    /**
     * Http请求响应的内容
     */
    private String   content;
    /**
     * Http response header
     */
    private Header[] responseHeader;

    public HttpResult(int code, String content){
        this.code = code;
        this.content = content;
    }

    public HttpResult(int code, String content, Header[] responseHeader){
        this.code = code;
        this.content = content;
        this.responseHeader = responseHeader;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Header[] getResponseHeader() {
        return responseHeader;
    }

    public void setResponseHeader(Header[] responseHeader) {
        this.responseHeader = responseHeader;
    }

}
